package com.bootdo.shop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.shop.dao.SpecificationAttributeDao;
import com.bootdo.shop.domain.SpecificationAttributeDO;
import com.bootdo.shop.service.SpecificationAttributeService;



@Service
public class SpecificationAttributeServiceImpl implements SpecificationAttributeService {
	@Autowired
	private SpecificationAttributeDao specificationAttributeDao;
	
	@Override
	public SpecificationAttributeDO get(Long specAttrId){
		return specificationAttributeDao.get(specAttrId);
	}
	
	@Override
	public List<SpecificationAttributeDO> list(Map<String, Object> map){
		return specificationAttributeDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return specificationAttributeDao.count(map);
	}
	
	@Override
	public int save(SpecificationAttributeDO specificationAttribute){
		return specificationAttributeDao.save(specificationAttribute);
	}
	
	@Override
	public int update(SpecificationAttributeDO specificationAttribute){
		return specificationAttributeDao.update(specificationAttribute);
	}
	
	@Override
	public int remove(Long specAttrId){
		return specificationAttributeDao.remove(specAttrId);
	}
	
	@Override
	public int batchRemove(Long[] specAttrIds){
		return specificationAttributeDao.batchRemove(specAttrIds);
	}
	
}
